/*
	******************************************************************************************
	Post/View Photos - Use Case 6.1, 6.2:  by Brannen Sorem,  Last Updated 03/20/10 - 10:02am

	Functional Specification
	Photo_model.js is the  javascript file that includes additional HTML information that is
	loaded into photos.php through photo.js - it adds the photo upload and photo viewing tools
	to the page.  The photos are stored on Flickr.com and accessed using a JSON request
	from a Flickr URL tied to the account.  Posting photos is done through the Flickr API and
	uses a PHP library to do so - phpFlickr.
	
	Web Master Maintenance:
	******************************************************************************************
	If you need to change the upload form or the view photos area, this is the page you need
	to edit.  It is probably most wise to have this done by a web professional.

	******************************************************************************************
*/

upload_form = "\
<form id='photo_upload_form' method='POST' action='photo_upload.php'> 								\
	<fieldset> 																						\
		<legend>Upload Photo</legend> 																\
		<div> 																						\
			<span>Title: </span> 																	\
			<input value=''  class='required' type='text' name='title' id='title' /> 				\
		</div> 																						\
		<div> 																						\
			<span>Description: </span> 																\
			<div>																					\
				<textarea cols='40' rows='5' name='description' id='description'></textarea>		\
			</div> 																					\
		</div> 																						\
		<div> 																						\
			<span>File: </span> 																	\
			<input value=''  class='required' type='file' name='file' id='file' /> 					\
		</div> 																						\
		<div> 																						\
			<span>Your Name: </span>																\
			<input value='' type='text' name='name' id='user_name' />								\
			<a id='inline' href='#whats_this'><em class='tip' title='Entering your name in this field allows the photo to be searchable by your name.'>What\'s this?</em></a>\
			<div style='display:none'><div id='whats_this' class='fancy_popup'> \
				<p>You can search a photo by <em>Your Name</em> if you fill in this field.</p> \
			</div></div> \
		</div>																						\
		<div id='submit'>																			\
			<input class='submit' type='submit' value='Upload' id='upload_photo_button' />			\
		</div> 																						\
	</fieldset> 																					\
</form>";

search_form = "\
<div id='sort'> \
	<span>Filter by Upload person's name: </span> \
	<input type='text' value='' name='search' id='search' /> \
	<input type='button' value='Filter' id='search_button' /> \
	<input type='button' value='Help' id='help_button'/> \
	<a id='inline_help' href='#load_help'></a> \
	<div style='display:none'><div id='load_help' class='fancy_popup'> \
		<p>The filter box allows you to filter for photos that have your name.<br /> \
		   <em>&nbsp;&nbsp;&nbsp;Note:  You must fill in the 'Your Name' value when uploading a photo.</em></p> \
		<p>To view all photos, simply leave the field blank and then click Filter.</p> \
	</div></div> \
</div>";
